Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use remix plugin 0.3 #511

Merged
merged 19 commits into from
Nov 23, 2020
Merged

Use remix plugin 0.3 #511

merged 19 commits into from
Nov 23, 2020

Conversation

yann300
Copy link
Contributor

@yann300 yann300 commented Oct 19, 2020

No description provided.

@yann300 yann300 self-assigned this Oct 19, 2020
Copy link
Contributor

@GrandSchtroumpf GrandSchtroumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In PluginManager rename :

  • canActivate to canActivatePlugin
  • canDeactivate to canDeactivatePlugin

@@ -80,7 +80,7 @@
"yo-yoify": "^3.7.3"
},
"dependencies": {
"@remixproject/engine": "^0.2.5",
"@remixproject/engine-web": "^0.2.5",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be 0.3.0

@@ -2,7 +2,8 @@ const yo = require('yo-yo')
const csjs = require('csjs-inject')
const EventEmitter = require('events')
const LocalPlugin = require('./local-plugin')
import { ViewPlugin, IframePlugin, WebsocketPlugin } from '@remixproject/engine'
import { IframePlugin, WebsocketPlugin } from '@remixproject/engine-web'
import { ViewPlugin } from '@remixproject/engine'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In 0.3.3 this should come from engine-web too

@@ -61,7 +61,7 @@ class DebuggerTab extends ViewPlugin {

this.renderComponent()

this.call('manager', 'activatePlugin', 'source-verification').catch(e => console.log(e.message))
// this.call('manager', 'activatePlugin', 'source-verification').catch(e => console.error(e))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can remove

async canActivate (from, to) {
return canActivate(from.name)
async canActivatePlugin (from, to) {
return true // canActivate(from.name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any plugin can activate another ?

}

async canDeactivate (from, to) {
async canDeactivatePlugin (from, to) {
console.log('canDeactivatePlugin', from, to)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove console.log

onRegistration (plugin) {
this.event.emit('added', plugin.name)
onRegistration () {
console.log('manager has been registered')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

})
return plugins.map(plugin => {
if (plugin.name === 'scriptRunner') {
plugin.url = 'ipfs://QmRWBCgCzKa1ixoVN9mvJACVuqWLRTRYS4sUJ9wzUBRHSf'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not setting it directly in the profile above ?

"@remixproject/plugin-api": "0.3.0-beta.5",
"@remixproject/plugin-utils": "0.3.0-beta.5",
"@remixproject/plugin-ws": "^0.3.0-beta.8",
"@remixproject/plugin": "^0.3.2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use version 0.3.3

@yann300 yann300 force-pushed the remixplugin0.3 branch 2 times, most recently from a8bef89 to 79efc01 Compare November 17, 2020 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants